﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.Lojistik
{
    public partial class PLKiranMagaza : XForm
    {
        public PLKiranMagaza()
        {
            InitializeComponent();
        }

        private void PLKiranMagaza_Load(object sender, EventArgs e)
        {
            gridView1.Init("GetPLKiranMagaza");
            gridView1.BestFitColumns();
            gridView1.AddSummary();

            gridView1.AddAutoIncrementalPK("PLKiranMagazaId");
            gridView1.EnableNewRow();
            gridView1.EnableRowDelete();
            btnKaydet.ItemClick += btnKaydet_ItemClick;
        }

        void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridView1.Update("", "PLKiranMagaza");
            gridView1.RefreshDataSource("GetPLKiranMagaza");
        }
    }
}
